public class _CreditCard
{
    public _CreditCard()
    {
        // Default constructor
    }

	public _CreditCard(long CCNum)
	{
        // Custom constructor used to populate credit card data.
        WebServiceApplication.WebService webService = new WebServiceApplication.WebService();
        _CreditCard data = webService.getCreditCard(CCNum);
        if (data != null)
        {
            this.CCNum = data.CCNum;
            this.securityNum = data.securityNum;
            this.name = data.name;
            this.cardType = data.cardType;
        }
	}

	// Variables
    public long CCNum { get; set; }
    public int securityNum { get; set; }
    public string name { get; set; }
    public string cardType { get; set; }
}